package com.shiyi.sqlSession;

import com.shiyi.pojo.Configration;

/**
 * @Descrption
 * @Author: 十一
 * @Date: 2020/11/9 14:51
 * @Version V5.0
 **/
public class DefaultSqlSessionFactory implements SqlSessionFactory {

    private Configration configration;

    public DefaultSqlSessionFactory(Configration configration) {
        this.configration = configration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configration);
    }
}
